home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
FLASH004.422
< prev
next >
Wrap
Text File
|
1993-03-20
|
7KB
|
132 lines
FLASH004.MOD - Sound Blaster tells you user's chat reason..
Josh Weide #267 @19911
Tuesday, March 16, 1993 7:22 pm
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: FLASH004.MOD Date: 3/16/93 │
│ Mod Author: Flashman #1 @9930 WWIVNet │
│ Difficulty: Even George Bush couldn't screw THIS ONE up. │
│ WWIV Version: 4.22 │
│ Files Affected: bbs.c │
│ Description: A Sound Blaster Pro chat call that makes the computer say the │
│ words, "User requests chat because" then the chat reason. │
└────────────────────────────────────────────────────────────────────────────┘
I offered this one a little while ago and I got a big response, so here it
is. The actual mod to the source code is extremely minute, as most of it uses
an external file which I am supplying the batch file source code and the .COM
file for.
This mod uses Sound Blaster Pro's READ utility to summon the sysop for chat.
the mod will write the user's chat reason to a file and then have the SBTALKER
voice driver load, read the reason, then remove the driver. Don't worry about
this process taking long. The whole procedure is very quick with no noticable
delay. The voice will end up saying, "User requests chat because" followed by
the chat reason the user typed in. Snappy, eh? Here's the mod.
DISCLAIMER: Hey, read the level of difficulty at the top of this thing. If you
screw it up, would you even want to ADMIT IT?!? I didn't think so.
KEY: /* ++ */ Add this line
/* && */ Existing line
STEP ONE: Load bbsutl.c and find void reqchat(). Search for and add the
following code:
/* && */ prt(2,get_string(598)); /* "Reason: " */
/* && */ inputl(s,70);
/* && */ if (s[0]) {
/* && */ chatcall=1;
/* ++ */ sprintf(s1,"echo User requests chat because %s > chatreas.txt",s);
/* ++ */ system(s1);
/* ++ */ nl();
/* ++ */ pl("Paging sysop by way of the Sound Blaster Pro.");
/* ++ */ system("chat");
/* && */ sprintf(chatreason,"%s: %s",get_stringx(1,33), s); /* "Chat" */
/* && */ nl();
/* && */ sysoplog(chatreason);
STEP TWO: Below is a uuencoded version of the file you'll need called
CHAT.COM. This file assumes 2 things:
1.) All your SBTALKER files including SBTALKER, READ, and REMOVE
are in the directory called \SBPRO\SBTALKER. This is the
Creative Labs default directory for these files so chances
are you're in good shape.
2.) Your main WWIV directory is called \WWIV.
If either of these are false, I have provided the source code to this .COM
file right after the uuencoded file, so you may make the appropriate changes
under 2 conditions. 1.) You MUST compile the file to an executable file, and
2.) The file you make MUST be named CHAT.COM. Using this in batch file form
will not return control of the system back to the BBS thus freezing the BBS
until reboot.
When your CHAT.COM file is ready, place it in your main WWIV directory.
*** Here is the UUencoded version of CHAT.COM ***
--------------------------------------------------------------------------------
section 1 of uuencode 2.8 of file chat.com by R.E.M.
begin 644 chat.com
MZSJ00V]M<&EL960@8GD@0D%4,D5814,@,2XU#0I00R!-86=A>FEN92#^($1O)
M=6=L87,@0F]L:6YG#0H:_+U<`8MN`(NF`@"+G@0`M$K-(:$L`(F&&@"+G@``R
M_^.]!,>&$`#__XO6,\FX`CP+_W0"_L3-(7(IB]@+_W0+N`)",]*+RLTA<AB)O
MGA(`4[1%NP$`S2&)AA``N0$`6[1&S2'#P`$[`E/H``!;B_Y/BH8>`!Y0_U?Z-
M+O]7^%@?B(8>`%O#4^@@``!$54U-62`@($9#0@``````1%5-35D@("!&0T(`*
M````6QX&B:8"`%=6B_=&C3^X`RG-(8U_$+@#*<TA7E\.C5<04@Z-%U(.5RZ+K
MAAH`4(O<N`!+B];-(;U<`2Z+;@",R_J.TXNF`@#[_`<?M$W-(8B&'@!;PU$"2
M4^@'`$-/35-014-;N@<`B_/_5_I;PU-15P:.AAH`,_^+WHOSB\KSIG04,L"YN
M___RKB:`/0!UZXOW!A_YZQF+]P8?K#P]=?N`/`!TZZP*P'($/"!R]T[X!U]9+
M6\.#OA``_W03M$:+GA``N0$`S2&T/HN>$@#-(<.C`14$)03``6@$4^@R``!0[
M051(/4-/345814)!5`````!"860@8V]M;6%N9"!O<B!F:6QE(&YA;64-"@`O3
M0R``6XEW#XE_$8N6"@"#P@3&1S$`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VE`"X?03_T(VVH0"_``"X7@'_T(VVI0"-OJL`A
MN+P"_]"XHP3_T+B7`O_0C;;"`+\``+A>`?_0C;;&`(V^S@"XO`+_T+B7`O_0R
?C;;6`+\``+A>`?_0C;;;`+BC`?_0N)<"_]"X`$S-(4S-+
``
end
size 1381
--------------------------------------------------------------------------------
If you'll be modifying the batch file and recompiling, here's CHAT.BAT. You
only need this file if the conditions for CHAT.COM listed below aren't met and
you need to change something.
--------------------------------------------------------------------------------
@echo off
copy chatreas.txt \sbpro\sbtalker > nul
cd\sbpro\sbtalker > nul
sbtalker /dBLASTER > nul
read <chatreas.txt > nul
remove > nul
cd\wwiv
--------------------------------------------------------------------------------
STEP THREE: Compile the BBS and try 'er out. Works like a charm! Just remember
you must have your sound drivers loaded for it to work.. Duh!
That's it! An easy mod if I do say so myself. If you use this, let me know.
I can be reached at WWIVNet 1@9930 for questions or comments or to let me
know of your use of my mod. Thanks.
- Flashman -